package com.news.service;

import java.util.List;

import com.news.dao.UserDao;
import com.news.entity.User;
import com.news.util.PageModel;

public interface UserService {

	public abstract void setUserDao(UserDao userDao);

	// 登陆
	public abstract User login(User user);

	// 添加 注册
	public abstract void addUser(User user);

	public abstract List<User> getAllUser();

	// ID获取对象
	public abstract User getUser(int userid);

	// 修改
	public abstract boolean updateUser(User user);

	// 删除
	public abstract boolean delUser(int userid);

	// 分页查询
	public abstract PageModel getPageModel(Integer currentPage, Integer rows);

	// 模糊查询
	public abstract PageModel getcheckalluser(String name, Integer currentPage,
			Integer rows);

	// 检验username
	public abstract List<User> checkusername(String username);

}